
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if($oUser['usertype']==1):?>个人主页<?php else:?>机构主页<?php endif?>-魔步网</title>
<?php include_once(VIEWPATH."public/header_title.php");?>
<link href="<?php echo _get_cfg_path('css')?>base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('css')?>common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="<?php echo _get_cfg_path('js')?>DD_belatedPNG.js" type="text/javascript" ></script>
<script>DD_belatedPNG.fix('a,img');</script>
<![endif]-->
</head>
<body>
<?php include_once(VIEWPATH."public/header.php");?>

<div class="mainbody" id="mainbody">
	<div class="introd container">
        
    <?php
      if( in_array($oUser['usertype'], array(1,4,5,6)) )
        include_once(VIEWPATH."i/public/top.php");
      if($oUser['usertype']==2)
        include_once(VIEWPATH."i/public/top_ins.php");?>
        <div class="works malbums personal">
        	<?php if ($list):?>
        		<div class="photo_order"><span>排序：</span><a <?php if ($order==1):?>class="curr"<?php endif;?> href="?order=1">时间倒序</a><a <?php if ($order == 2):?>class="curr"<?php endif;?> href="?order=2">时间顺序</a></div>
	        	<?php foreach ($list as $k=>$val):?>
	        		<div class="parent_page">
		        		<div class="title sub_photo_type" data-key="<?=$k?>" data-flag="1"><?php if ($k == 0) echo '精选作品';else echo $photoArr[$k];?></div>
			            <ul class="clearfix">
			                <?php foreach ($val as $key => $a): ?>
				                <li <?php if ($key>5):?>class="hide_photo_show photo_hide_<?=$k?>"<?php endif;?>>
				                    <a href="/i/photo/<?=$a['id']?>">
				                        <img src="<?php echo (0 === strncmp($a['showimg'], './', 2))? substr($a['showimg'], 1): $a['showimg'];?>">
				                        <div class="wor_wzi">
				                            <h3><?=$a['title']?><span>（<?=$a['photonum']?>张）</span></h3>
				                            <p>创建时间：<?=date('Y-m-d H:i:s',$a['addtime'])?></p>
				                        </div>
				                    </a>
				                </li>
			                <?php endforeach;?>
			            </ul>
			            <?php if ($key>5):?>
			            	<div class="clearfix more_photo_div"><a href="javascript:void(0);" onclick="morePhoto(<?=$k?>,this)">查看更多<br/><img src="<?php echo _get_cfg_path('images')?>more_flag.gif" alt="更多" title="更多"/></a></div>
			            	<div class="clearfix less_photo_div"><a href="javascript:void(0);" onclick="lessPhoto(<?=$k?>,this)">缩回<br/><img src="<?php echo _get_cfg_path('images')?>less_flag.gif" alt="缩回" title="缩回"/></a></div>
			            <?php endif;?>
		            </div>
		        <?php endforeach;?>
	        <?php endif;?>
        </div>

    </div>
</div>
<!--mainbody-->
<?php include_once(VIEWPATH."public/footer.php");?>
</body>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>common.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>main.js"></script>
</html>